package example.documentbased.mainModule.models.vo
{
	[RemoteClass(alias="example.documentbased.mainModule.models.vo.DocumentVO")]
	public final class DocumentVO
	{
		public var id:String;
		
		public var uid:String;
		
		public var editorId:String;
		
		public var name:String;
		
		public var text:String;
		
		public var lazy:Boolean;
		
		public function DocumentVO(id:String = "", uid:String = "", editorId:String = "", 
								   name:String = "", text:String = "", lazy:Boolean = false)
		{
			this.id = id;
			this.uid = uid;
			this.editorId = editorId;
			this.name = name;
			this.text = text;
			this.lazy = lazy;
		}
		
		public function apply(value:DocumentVO):void
		{
			this.id = value.id;
			this.editorId = value.editorId;
			this.name = value.name;
			this.text = value.text;
		}
	}
}